<include file="Index/header" />
<body>
<div id="wrapper">

  <include file="Index/nav"/>
  <div id="page-wrapper">

    <div class="container-fluid" >

      <!-- Page Heading -->
      <div class="row">
        <div class="col-lg-12">

          <ol class="breadcrumb">
            <li>
              <i class="fa fa-dashboard"></i>  <a href="/admin.php?c=products">产品管理</a>
            </li>
            <li class="active">
              <i class="fa fa-table"></i>产品列表
            </li>
          </ol>
        </div>
      </div>
      <!-- /.row -->
      <div >
        <button  id="products-add" type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span>添加</button>
      </div>
      <div class="row">
        <form action="/admin.php" method="get">
          <input type="hidden" name="c" value="products"/>
          <input type="hidden" name="a" value="index"/>
          <div class="col-md-3">
            <div class="input-group">
              <input class="form-control" name="products_name" type="text" value="{$products_name}" placeholder="产品名字" />
                <span class="input-group-btn">
                  <button id="sub_data" type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-search"></i></button>
                </span>
            </div>
          </div>
        </form>
      </div>
      <div class="row">
        <div class="col-lg-6">
          <h3></h3>
          <div class="table-responsive">
            <form id="singcms-listorder">
              <table class="table table-bordered table-hover products-table">
                <thead>
                <tr>
                  <th width="14">排序</th>
                  <th>id</th>
                  <th>产品名称</th>
                  <th>产品图</th>
                  <th>时间</th>
                  <th>状态</th>
                  <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <volist name="products" id="pro">
                  <tr>
                    <td><input size="4" type="text" name="listorder[{$pro.products_id}]"" value="{$pro.listorder}"/></td>
                    <td>{$pro.products_id}</td>
                    <td>{$pro.products_name}</td>
                    <td>
                      {$pro.thumb|isThumb}
                    </td>
                    <td>{$pro.create_time|date="Y-m-d H:i",###}</td>
                    <td><span  attr-status="<if condition="$pro['status'] eq 1">0<else/>1</if>"  attr-id="{$pro.products_id}" class="sing_cursor singcms-on-off" id="singcms-on-off" >{$pro.status|status}</span></td>
                    <td><span class="sing_cursor glyphicon glyphicon-edit" aria-hidden="true" id="products-edit" attr-id="{$pro.products_id}" ></span>
                      <a href="javascript:void(0)" id="products-delete"  attr-id="{$pro.products_id}"  attr-message="删除">
                        <span class="glyphicon glyphicon-remove-circle" aria-hidden="true"></span>
                      </a>
                      <a target="_blank" href="./singnew/index.php?c=detail&a=view&id={$new.news_id}" class="sing_cursor glyphicon glyphicon-eye-open" aria-hidden="true"  ></a>

                    </td>
                  </tr>
                </volist>

                </tbody>
              </table>
              <nav>

              <ul >
                {$pageres}
              </ul>

            </nav>
<div >
        <button  id="button-listorder" type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span class="glyphicon" aria-hidden="true"></span>更新排序</button>
      </div>
            </form>
            <div class="input-group">

            </div>

          </div>
        </div>

      </div>
      <!-- /.row -->



    </div>
    <!-- /.container-fluid -->

  </div>
  <!-- /#page-wrapper -->

</div>
<!-- /#wrapper -->
<script>
  var SCOPE = {
    'edit_url' : '/admin.php?c=products&a=edit',
    'products_add_url' : '/admin.php?c=products&a=add',
    'set_status_url' : '/admin.php?c=products&a=setStatus',
    'sing_news_view_url' : '/index.php?c=view',
    'listorder_url' : '/admin.php?c=products&a=listorder',
    'push_url' : '/admin.php?c=content&a=push',
  }
</script>
<include file="Index/footer" />